import { createRouter, createWebHashHistory } from 'vue-router';

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      name: 'overview',
      meta: { title: '总览', icon: 'Codepen' },
      component: () => import('@/views/overview/index.vue'),
    },
    {
      path: '/matchAssistant',
      name: 'MatchAssistant',
      meta: { title: '对局助手', icon: 'Relation' },
      component: () => import('@/views/matchAssistant/index.vue'),
    },
    {
      path: '/tools',
      name: 'Tools',
      meta: { title: '工具', icon: 'Tool' },
      component: () => import('@/views/tools/index.vue'),
    },
    {
      path: '/setting',
      name: 'setting',
      meta: { title: '设置', icon: 'Settings' },
      component: () => import('@/views/setting/index.vue'),
    },
  ],
});

export default router;
